FROM  openjdk:8-jre

ENV SMARTAPP_SERVICE_HOME="/home/smartapp"
ENV PATH="${SMARTAPP_SERVICE_HOME}/bin:${PATH}"

COPY bin  ${SMARTAPP_SERVICE_HOME}/bin
COPY lib  ${SMARTAPP_SERVICE_HOME}/lib


EXPOSE 10808/tcp

WORKDIR ${SMARTAPP_SERVICE_HOME}

#RUN yum install kde-l10n-Chinese -y
#RUN yum install glibc-common -y
#RUN localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
#RUN export LANG=zh_CN.UTF-8
#RUN echo "export LANG=zh_CN.UTF-8" >> /etc/locale.conf
#ENV LANG zh_CN.UTF-8
#ENV LC_ALL zh_CN.UTF-8
# 设置docker容器时区为UTC+8
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

ENTRYPOINT ["smartapp"]